<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/7/16 星期三
  Time: 15:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html>

<head>
    <base href="${pageContext.request.contextPath}/" />
    <title>襄阳蓝芯智能化办公系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewsport" content="width=device-width, initial-scale=1.0">
    <link href="static/bootstrap-3.3.5/css/bootstrap.css" rel="stylesheet">
    <script src="static/jquery/jquery-1.10.2.min.js"></script>
    <script src="static/bootstrap-3.3.5/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container-fluid">
    <div class="row" id="top">
        <nav class="navbar navbar-inverse" role="navigation" style="background-color: #337ab7;">
            <div class="container-fluid">
                <div class="navbar-header">
                    <a class="navbar-brand" style="color:orange;">襄阳蓝芯智能化办公系统</a>
                </div>
                <ul class="nav navbar-nav navbar-right">
                    <li><a style="color: #fff"><span class="glyphicon glyphicon-user"></span>欢迎您:${name}</a></li>
                    <li><a href="logout" style="color:yellow;"><span class="glyphicon glyphicon-log-in"></span> 退出  </a></li>
                </ul>
            </div>
        </nav>
    </div>
    <div class="row">
        <div class="col-md-2" id="left">
            <iframe name="left" src="login/gotoLeft" scrolling="auto" width="100%"
                    height="100%" frameborder="0"></iframe>
        </div>

        <div class="col-md-10" id="home">
            <iframe name="home" src="login/gotoHome" scrolling="auto"
                    width="100%" height="100%" frameborder="0"></iframe>
        </div>
    </div>
</div>


<script type="text/javascript">
    $(document).ajaxError(function(event,xhr) {
        if(xhr.status=="403"){//没有权限
            document.location.href = xhr.getResponseHeader("url");
        }else if(xhr.status!="200"){
            //alert("服务器错误!");
            console.log("服务器错误!");
        }
    });
</script>
</body>
<script type="text/javascript">
    $('#top').css({"height":window.innerHeight*0.1});
    $('#left').css({"height":window.innerHeight*0.9});
    $('#home').css({"height":window.innerHeight*0.9});
</script>
</html>
